import java.util.ArrayList;
import java.util.List;

public class SalaryManagementSystem {
    private List<Employee> EmployeeList = new ArrayList<>();

    public void addEmployee(Employee employee) {
        EmployeeList.add(employee);
    }

    public void generateAllPaySlips() {
        System.out.println("===== 公司月度工资条汇总 =====");
        for (Employee emp : EmployeeList) {
            System.out.println("\n" + emp.generatePaySlip());
        }
    }
}